﻿using Neurotec.Biometrics;


namespace AccessControl.FingerPrintLibrary
{
    public class Verification
    {
        #region Field

        private static Verification _verification;
        private readonly NMatcher _matcher = new NMatcher();

        #endregion

        #region Constructor & Singltone

        private Verification()
        {

        }

        public static Verification GetInstance()
        {
            return _verification ?? (_verification = new Verification());
        }

        #endregion

        #region Method

        public int Verify(byte[] template1, byte[] template2)
        {
            return _matcher.Verify(template1, template2);
        }

        public static FingerMatcher GetFingerMatcherInstance()
        {
            return new FingerMatcher();
        }

        #endregion

    }
}
